package com.ccy.search.feign;

import com.ccy.common.core.domain.Result;
import com.ccy.search.domain.SkuEsModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.IOException;
import java.util.List;

@FeignClient("ccy-search")
public interface SearchFeignService {

    @PostMapping("/es/save/productStatusUp")
    public Result productStatusUp(@RequestBody List<SkuEsModel> skuEsModelList);

}
